package com.hxgz.steel.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import java.math.BigDecimal;
import java.util.Date;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

@Data
@ApiModel("订单管理对象模型")
public class Order {

  private Long id;

  @ApiModelProperty("商家id")
  private Long merchantId;

  @ApiModelProperty("商家名称")
  private String merchantName;

  @ApiModelProperty("商家报价id")
  private Long quotationId;

  @ApiModelProperty("地址id")
  private Long addressId;

  @ApiModelProperty("订单号")
  private String orderNo;

  @ApiModelProperty("用户id")
  private Long userId;

  @ApiModelProperty("订单金额")
  private BigDecimal money;

  @ApiModelProperty("实际付款金额,单位是元,保留两位小数")
  private BigDecimal payment;

  @ApiModelProperty("支付类型,1-在线支付")
  private Integer paymentType;

  @ApiModelProperty("运费,单位是元")
  private BigDecimal postage;

  @ApiModelProperty("订单状态(买家)  0待付款 1 待发货 2已发货 3已完成 4已取消 5已关闭 6取消和关闭被删除 7已完成被删除")
  private Integer status;

  @ApiModelProperty("订单状态（卖家）  0待付款 1 待发货 2已发货 3已完成 4已取消 5已关闭 6取消和关闭被删除 7已完成被删除")
  private Integer statusSeller;

  @ApiModelProperty("是否自营:1是  0否")
  private Integer selfSupport;

  @ApiModelProperty("是否发票")
  private Integer invoice;

  @ApiModelProperty("佣金")
  private BigDecimal brokerage;

  @ApiModelProperty("备注")
  private String remark;

  @ApiModelProperty("付款时间")
  private Date paymentTime;

  @ApiModelProperty("发货时间")
  private Date sendTime;

  @ApiModelProperty("交易完成时间")
  private Date endTime;

  @ApiModelProperty("交易关闭时间")
  private Date closeTime;

  @ApiModelProperty("物流公司")
  private String logistics;

  @ApiModelProperty("物流编码")
  private String logisticsNum;

  @ApiModelProperty("创建时间(下单时间)")
  private Date createTime;

  @ApiModelProperty("更新时间")
  @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
  private Date updateTime;


}